package com.cn.xiaonuo.tcrfinance.tcrorder.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.xiaonuo.tcrfinance.tcrorder.entity.PvPossessionGoods;
import com.cn.xiaonuo.tcrfinance.tcrorder.entity.PvTicketingRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Repository
public interface PvPossessionGoodsMapper extends BaseMapper<PvPossessionGoods> {
    PvTicketingRecord queryGoodsDetail(@Param("productId") Integer productId);

    BigDecimal totalHoldings(@Param("userId") Integer userId, @Param("productId") Integer productId, @Param("date") String date);

    BigDecimal getCansellNumber(@Param("userId") Integer userId);
}
